import 'package:flutter/material.dart';
import '../model/user_mode.dart';

class UserProvide with ChangeNotifier {
  UserModel userIofo;
  //存储user数据
  changeUserInfo(info) {
    userIofo = UserModel.fromJson(info);
    notifyListeners();
  }

  removeInfo() {
    userIofo = null;
    notifyListeners();
  }
}
